import JSEncrypt from './jsencrypt.js';



//公钥
const PUBLIC_KEY = `
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZ5/OgsL6fAbSCWnNA5sFjfmw+
qe6x4nsAWQ5dfv+2hfD1bleFdOduB5VZ4IkyNNeSCzN+3eQ1xzrAf5pjIZK6PxB6
ytjusXDxv2spmWTRcZX/lWcB2vyijZqRZE2pjb60iFywNFvGbGgegfDN+g7/5/H/
/5flMWbLgAWgUtrstQIDAQAB
-----END PUBLIC KEY-----
`
//私钥
const PRIVATE_KEY = `
-----BEGIN PRIVATE KEY-----
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANnn86Cwvp8BtIJa
c0DmwWN+bD6p7rHiewBZDl1+/7aF8PVuV4V0524HlVngiTI015ILM37d5DXHOsB/
mmMhkro/EHrK2O6xcPG/aymZZNFxlf+VZwHa/KKNmpFkTamNvrSIXLA0W8ZsaB6B
8M36Dv/n8f//l+UxZsuABaBS2uy1AgMBAAECgYBJNwpAv6IMwwHnmoSHFgF8cInm
NCqjUjmJ0GJnP7ijlzVzAXQevzzTV3DzFeKDIAYeZ+0Rf3SiLSKsczNog2tM0g66
HVB/KLaVjPjidkDjMfdZlCn7Ez1ji9MkFEsaqETcostNev/aNceVTJuThwIHd+hP
y1ANBmYiZdpebMGVgQJBAPAf22mjTQBaTUfPOFz9+15i7nDhPq/WVMGHfzhV6dCq
/r03tge4Be24cmYekZS605K5rjdM1Ta6WuFUXE5omI0CQQDoUAuLrtwh1qC0o7cG
I9rU5vJRE+KLRCxM/x9KzxImRdR9WGgUxJ2ZN/vcAjnC99XoT+ZpMi3mFRv7+ApR
LT7JAkEA2FSrFPHlNnMkepRrAARliXRxwsp68mmTNEPBTty/6JmVJJ1jZnLZDIEG
t4/Esozafa7BENssn8Cmjai1/IHpJQJAa0LCAe1rYAhLzPul/qTBXfl/uiWXPLvu
RGKq3Qx8kcU+Fd2iuKwLI/owRGWWq8loL0ns1XdAr/HhKNZeVRqx2QJBAIGsy2Gi
Pe4hiFhgsAiGuVpLcyj90/fpxZqGBHa5aLuTneMoZWkdoaxVdzisoiR7XJGQ3c8e
fMowdpJTCphkiEs=
-----END PRIVATE KEY-----
`;

const enc = new JSEncrypt();
//设置公钥
enc.setPublicKey(PUBLIC_KEY);
//设置私钥
enc.setPublicKey(PRIVATE_KEY);


export default enc